Function isvalidpath (destpath$, ByVal DefaultDrive$) As Integer
'----------------------------
' Remove left and right spaces
'----------------------------
destpath$ = RTrim$(LTrim$(destpath$))
'-----------------------------
' Check Default Drive Parameter
'-----------------------------
If Right$(DefaultDrive$, 1) <> ":" Or Len(DefaultDrive$) <> 2 Then
MsgBox "Bad default drive parameter specified in IsValidPath Function. You passed, """ + DefaultDrive$ + """. Must be one drive letter and "":"". For example, ""C:"", ""D:""...", 64, "Setup Kit Error"